package Command.commandInterfacesImpl;

import Command.commandInterfaces.Command;
import Command.commons.interfacesImpl.Stereo;

/**
 * @Author: pengzx
 * @Description:
 * @Date: 10:51 2017/9/13
 * @Modified by: 1.0
 */
public class StereoOffCommand implements Command {
    Stereo stereo;
    @Override
    public void execute()
    {
        stereo.off();
    }

    @Override
    public void undo()
    {
        stereo.on();
    }

    public StereoOffCommand(Stereo stereo)
    {
        this.stereo = stereo;
    }
}
